import { Injectable } from '@angular/core';
import { HttpService } from '../HTTP/http.service';
import { HttpParams } from '@angular/common/http';

import * as I from './interface/ICustomer';
@Injectable()
export class CustomerApirequest implements I.CustomerInterface {

  addCustomer(p: I.PaddCustomer): Promise<any> {
    return this.http.post('/api/be/Customer/AddCustomer', p);
  }
  
  editCustomer(p: I.PeditCustomer): Promise<any> {
    return this.http.post('/api/be/Customer/EditCustomer', p);
  }
  
  transferHigher(p: I.PtransferHigher): Promise<any> {
    return this.http.post('/api/be/Customer/TransferHigher', p);
  }

  constructor(private http: HttpService) {
  }

}